package com.micro.school.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.micro.school.order.mapper.PayStudentPrepaymentDeductionMapper;
import com.micro.school.order.domain.PayStudentPrepaymentDeduction;
import com.micro.school.order.service.IPayStudentPrepaymentDeductionService;

/**
 * 学生预缴费管理消费明细Service业务层处理
 * 
 * @author lyb
 * @date 2025-08-20
 */
@Service
public class PayStudentPrepaymentDeductionServiceImpl implements IPayStudentPrepaymentDeductionService 
{
    @Autowired
    private PayStudentPrepaymentDeductionMapper payStudentPrepaymentDeductionMapper;

    /**
     * 查询学生预缴费管理消费明细
     * 
     * @param id 学生预缴费管理消费明细主键
     * @return 学生预缴费管理消费明细
     */
    @Override
    public PayStudentPrepaymentDeduction selectPayStudentPrepaymentDeductionById(Long id)
    {
        return payStudentPrepaymentDeductionMapper.selectPayStudentPrepaymentDeductionById(id);
    }

    /**
     * 查询学生预缴费管理消费明细列表
     * 
     * @param payStudentPrepaymentDeduction 学生预缴费管理消费明细
     * @return 学生预缴费管理消费明细
     */
    @Override
    public List<PayStudentPrepaymentDeduction> selectPayStudentPrepaymentDeductionList(PayStudentPrepaymentDeduction payStudentPrepaymentDeduction)
    {
        return payStudentPrepaymentDeductionMapper.selectPayStudentPrepaymentDeductionList(payStudentPrepaymentDeduction);
    }

    /**
     * 新增学生预缴费管理消费明细
     * 
     * @param payStudentPrepaymentDeduction 学生预缴费管理消费明细
     * @return 结果
     */
    @Override
    public int insertPayStudentPrepaymentDeduction(PayStudentPrepaymentDeduction payStudentPrepaymentDeduction)
    {
        return payStudentPrepaymentDeductionMapper.insertPayStudentPrepaymentDeduction(payStudentPrepaymentDeduction);
    }

    /**
     * 修改学生预缴费管理消费明细
     * 
     * @param payStudentPrepaymentDeduction 学生预缴费管理消费明细
     * @return 结果
     */
    @Override
    public int updatePayStudentPrepaymentDeduction(PayStudentPrepaymentDeduction payStudentPrepaymentDeduction)
    {
        return payStudentPrepaymentDeductionMapper.updatePayStudentPrepaymentDeduction(payStudentPrepaymentDeduction);
    }

    /**
     * 批量删除学生预缴费管理消费明细
     * 
     * @param ids 需要删除的学生预缴费管理消费明细主键
     * @return 结果
     */
    @Override
    public int deletePayStudentPrepaymentDeductionByIds(Long[] ids)
    {
        return payStudentPrepaymentDeductionMapper.deletePayStudentPrepaymentDeductionByIds(ids);
    }

    /**
     * 删除学生预缴费管理消费明细信息
     * 
     * @param id 学生预缴费管理消费明细主键
     * @return 结果
     */
    @Override
    public int deletePayStudentPrepaymentDeductionById(Long id)
    {
        return payStudentPrepaymentDeductionMapper.deletePayStudentPrepaymentDeductionById(id);
    }
}
